
package c.x.jy.common.utils;



/**
 * 常量
 *
 */
public class Constant {
	
 
	/** 超级管理员 */
	public static final long SUPER_ADMIN = 0l;
    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    public static final String size = "size";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     *  升序
     */
    public static final String ASC = "asc";
    
    public static final String USERKEY="USERKEY_";
    /**
     * 
     * 
     * 
     */
    public static final String NOTIFY_URL = "http://www.xuanzhu123.com/wechat/wechat/order/notify";//支付结果通知的回调地址,测试

   // public static final String WEB_NOTIFY_URL = "https://xx.58shareiot.com/businessRechargeRecord/payNotify";//支付结果通知的回调地址,web后台

    public static final String TRADDE_TYPE = "JSAPI";//取值如下：JSAPI，NATIVE，APP等 交易类型 必填

    public static final String UNIFIED_ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";// 统一下单接口链接

    public static final String PAY_USER_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";

    //订单状态查询
    public static final String ORDER_QUERY_URL = "https://api.mch.weixin.qq.com/pay/orderquery";

    public static final String GET_OPENID_URL = "https://api.weixin.qq.com/sns/jscode2session";// 获取openid接口链接
    
  /**
	 * 菜单类型
	 * 
	 */
    public enum MenuType {
        /**
         * 目录
         */
    	CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 权限
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
    /**
     * 定时任务状态
     * 
     */
    public enum ScheduleStatus {
        /**
         * 正常
         */
    	NORMAL(1),
        /**
         * 暂停
         */
    	PAUSE(0);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }
        
        public int getValue() {
            return value;
        }
    }

    /**
     * 云服务商
     */
    public enum CloudService {
        /**
         * 七牛云
         */
        QINIU(1),
        /**
         * 阿里云
         */
        ALIYUN(2),
        /**
         * 腾讯云
         */
        QCLOUD(3);

        private int value;

        CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}
